all Matches For Search
fun allMatchesForSearch(book: AccountBook, search: CurrencySearch, excludeHidden: Boolean = false, sortComparator: Comparator<CurrencyType>? = null): List<CurrencyType>
Return a list of currencies matching the given search filter
Author
Stuart Beesley - June 2024
Since
MD2024.2(5140)
Parameters
book
the AccountBook
search
the CurrencySearch to use
exclude Hidden
optionally specify true to also exclude when 'hide on summary page' is set...
sort Comparator
To return a sorted list, provide a comparator to use. I suggest @CurrencySearch.CURRENCY_TYPENAME_CASE_INSENSITIVE_COMPARATOR